// 第五个部署
// 1、收益接收者 (部署时完成)
// 2、需要设置使用支付token 币种 (部署时完成)
// gas 0.02
const { BigNumber } = require('ethers');

async function main() {
    const _feeReceiver = "0xb865af21333C5abeEf15e60D98D1a0f9F43FFf24";  // 收益接收者
    const _feeToken = "0x78867BbEeF44f2326bF8DDd1941a4439382EF2A7";

    const BBoxSwap = await ethers.getContractFactory("BBoxSwap");
    const instance = await upgrades.deployProxy(BBoxSwap, [_feeReceiver, _feeToken], {initializer:'__BBoxSwap_init'});
    await instance.deployed();
    console.log("BBoxSwap deployed to:", instance.address);
}

main()
    .then(() => process.exit(0))
    .catch((error) => {
        console.error(error);
        process.exit(1);
    });
